package com.bw.merchant.adapter

import com.bw.merchant.R
import com.bw.merchant.entity.MerchantEntity
import com.chad.library.adapter.base.BaseMultiItemQuickAdapter
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class MerchantAdapter:BaseMultiItemQuickAdapter<MerchantEntity,BaseViewHolder>() {

    init {
        addItemType(0,R.layout.item_no_settled)
        addItemType(1,R.layout.item_settled)
    }

    override fun convert(holder: BaseViewHolder, item: MerchantEntity) {
        holder.setText(R.id.tv_code,item.applicationNumber)
        holder.setText(R.id.tv_time,item.entryTime)
    }

}